using UnityEngine;
using System.Collections;

public class TestPlayerUpdate : MonoBehaviour {
	
	public bool isLeft;
	public bool isRight;
	
	//
	void Start () {
		// ...
	}
	
	// Update is called once per frame
	void Update () {
		if (isLeft) {
			this.transform.Translate( new Vector3( -5f * Time.deltaTime, 0,0) );	
		}
		if (isRight) {
			this.transform.Translate( new Vector3( 5f * Time.deltaTime, 0,0));	
		}
	}
}
